package com.des1gn.server.api;

import com.des1gn.api.service.BusinessRetryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ApiController
 * @Description TODO
 * @Author Des1gn
 * @Version 1.0
 **/
@RestController
@RequestMapping("api")
public class ApiController {

    private BusinessRetryService businessRetryService;

    @Autowired
    public ApiController(BusinessRetryService businessRetryService){
        this.businessRetryService = businessRetryService;
    }

    @GetMapping("getCacheValue")
    public String getCacheValue(){
        return businessRetryService.getResult("");
    }

}
